import os
BASE_PATH = os.path.dirname(os.path.abspath(__file__))

DEBUG = True
# DEBUG = False

# apikey    Runninghub的API Key
API_KEY = ''

# 心跳时长设置(S),必须大于单张生成所用时间
HEARTBEAT = 100

# 保存路径
SAVE_BASE = os.path.dirname(BASE_PATH)
SAVE_BASE_PATH = os.path.join(SAVE_BASE, '生成图片记录')    # r"/home/ps/Data1/生成图片记录"

if not os.path.exists(SAVE_BASE_PATH):
    os.makedirs(SAVE_BASE_PATH)

# 查询任务状态地址，部署时修改为公网IP
SELECT_TASK_URL = 'http://127.0.0.1:8000'
CLIENT_KEY = 'cdcbSuDNe4iUDacsacaca_wchime'
        
QUEUE_HOST = "127.0.0.1"
QUEUE_PORT = "5672"
QUEUE_USER = "admin"
QUEUE_PWD = "admin"

# ----------------------------队列配置------------------------------------------------------------------
# 结果队列
RESULT_QUEUE_NAME = "generate_result"
# 进程队列
PROGRESS_QUEUE_NAME = 'generate_progress'

LISTEN_QUEUE = [
    "generate_queue"
]

